var path = require("path")

let ssl_config = {};

const KEY_ROOT_PATH = "/root/tasscard_engine/tassl/bin";
const PRIVATE_KEY_NAME = "private.key";
const PUBLIC_KEY_NAME = "public.key";
const ENC_SIGN_KEY_NAME = "enc_sign_";
const DEC_SIGN_KEY_NAME = "dec_sign_";

ssl_config.PATH_PRIVATE_KEY = path.resolve(KEY_ROOT_PATH, PRIVATE_KEY_NAME);
ssl_config.PATH_PUBLIC_KEY = path.resolve(KEY_ROOT_PATH, PUBLIC_KEY_NAME);
ssl_config.PATH_ENC_SIGN = path.resolve(KEY_ROOT_PATH, ENC_SIGN_KEY_NAME);
ssl_config.PATH_DEC_SIGN = path.resolve(KEY_ROOT_PATH, DEC_SIGN_KEY_NAME);
ssl_config.SIGN_KEY_FORMAT = ".sign";
ssl_config.OPENSSL_LIB = "/root/tasscard_engine/tassl/lib";

module.exports = ssl_config;